﻿package mortal.game.view.signUp.sevenDayLogin
{
    import com.gengine.global.*;
    import extend.language.*;
    import mortal.component.window.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.guide.data.*;
    import mortal.game.view.rebate.openServerSevenDay.data.*;
    import mortal.game.view.signUp.sevenDayLogin.panel.*;
    import mortal.mvc.interfaces.*;

    public class SevenDayLoginModule extends BaseWindow
    {
        public var sevenDayLoginPanel:SevenDayLogin;

        public function SevenDayLoginModule(param1:ILayer = null)
        {
            super(param1);
            setSize(893, 610);
            title = "" + Language.getString(71934);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this.sevenDayLoginPanel = UIFactory.getUICompoment(SevenDayLogin, 7, 37, this);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this.sevenDayLoginPanel = null;
            if (AutoGuideCache.isGuidingLevelReward)
            {
                AutoGuideCache.isGuidingLevelReward = false;
            }
            AutoGuideCache.isGuidingSevenDay = false;
            return;
        }// end function

        override public function show(param1:int = 0, param2:int = 0) : void
        {
            if (OpenServerSevenDayUtil.isNotOpenSpeActive())
            {
                return;
            }
            param1 = (Global.stage.stageWidth - this.width) / 2;
            param2 = (Global.stage.stageHeight - this.height) / 2;
            super.show(param1, param2);
            return;
        }// end function

        override public function hide() : void
        {
            super.hide();
            return;
        }// end function

    }
}
